package com.emep.changzhi.analyse.repository.basics;

import com.emep.changzhi.analyse.entity.basics.SysLeadershipInfo;

import java.util.List;

/**
 * @author: LFY
 * @version:V1.0
 * @Description:
 * @Date: 2018/9/3 11:01
 */
public interface LeaderRepository extends BaseRepository<SysLeadershipInfo, Long>{
    SysLeadershipInfo findByLeaderId(long ID);

    List<SysLeadershipInfo> findAllByNameAndIsDelete(String name,String isDelete);

    List<SysLeadershipInfo> findAllByNameAndLeaderIdNotAndIsDelete(String name, Long leaderId,String isDelete);
}
